package cn.net.cfss.fgbp.api.console.vo;

import java.util.List;

import cn.net.cfss.fgbp.api.console.dto.SysUserBusiTypeDto;
import cn.net.cfss.fgbp.api.console.dto.SysUserDto;
import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;

public class SysUserVo extends SysUserDto {

    /**
     * 原密码
     */
    private String originalPassword;

    /**
     * 明文密码
     */
    private String plainPassword;

    /**
     * 确认密码
     */
    private String confirmPassword;

    /**
     * 所属角色ID集合
     */
    private List<Long> roleIds;

    /**
     * 所属业务类型ID集合
     */
    private List<Long> busiTypeIds;

    private List<SysUserRoleVo> roleList;

    private List<SysUserBusiTypeDto> busiTypeList;

    /**
     * 租户id
     */
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long tenantId;

    /**
     * 租户名称
     */
    private String tenantName;

    public String getOriginalPassword() {
        return originalPassword;
    }

    public void setOriginalPassword(String originalPassword) {
        this.originalPassword = originalPassword == null ? null : originalPassword.trim();
    }

    public String getPlainPassword() {
        return plainPassword;
    }

    public void setPlainPassword(String plainPassword) {
        this.plainPassword = plainPassword == null ? null : plainPassword.trim();
    }

    public List<Long> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Long> roleIds) {
        this.roleIds = roleIds;
    }

    public List<SysUserRoleVo> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<SysUserRoleVo> roleList) {
        this.roleList = roleList;
    }

    public String getConfirmPassword() {
        return confirmPassword;
    }

    public void setConfirmPassword(String confirmPassword) {
        this.confirmPassword = confirmPassword;
    }

    public List<Long> getBusiTypeIds() {
        return busiTypeIds;
    }

    public void setBusiTypeIds(List<Long> busiTypeIds) {
        this.busiTypeIds = busiTypeIds;
    }

    public List<SysUserBusiTypeDto> getBusiTypeList() {
        return busiTypeList;
    }

    public void setBusiTypeList(List<SysUserBusiTypeDto> busiTypeList) {
        this.busiTypeList = busiTypeList;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public String getTenantName() {
        return tenantName;
    }

    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }
}
